#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	double r, h, v;
	scanf("%lf %lf", &r, &h);
	v = 3.14 * r * r * h;
	printf("%f", v);
	return 0;
}